#include "YetiSeekState.h"

void YetiSeekState::update(YetiEnemy* owner, float frameTime)
{
	SteeringOutput steering = seek.getSteering();
	owner->particle.velocity = steering.direction;

	owner->yetiAnims->playAnimation("Move");
	owner->particle.velocity.x = 50.0f * steering.direction.x;
	if(steering.direction.x < 0) { owner->flip = false; }
	if(steering.direction.x > 0) { owner->flip = true; }
}